package com.cc.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: 用一句话描述
 * @Auther: 新梦想*陈超
 * @Date: 2020-06-30 11:07
 */
@RestController
@RequestMapping("/user")
public class UserController {
    @GetMapping("/{id}")
    public String login(@PathVariable("id") String id){
        return "{\"id\":1,\"name\":\"二狗子\"}";
    }
}
